﻿using System;
using System.Collections.Generic;
using System.Text;
using DrawingScreen;
using DrawingScreen.Constant;

namespace DrawingScreen.Messages
{
    public class CDrawingMessage_ChangeColor : CDrawingMessage
    {
        public byte r;
        public byte g;
        public byte b;

        public override void ReadMessage(libReadWrite.BigEndianReader sr)
        {
            this.r = sr.ReadByte();
            this.g = sr.ReadByte();
            this.b = sr.ReadByte();
        }

        public override void WriteMessage(libReadWrite.BigEndianWriter sw)
        {
            throw new NotImplementedException();
        }

        public override libCommonClass.TTMessage Clone()
        {
            return new CDrawingMessage_ChangeColor();
        }

        public override int GetMessageID()
        {
            return CDrawingMessageKind.CHANGECOLOR;
        }

        public override string GetMessageName()
        {
            return "CDrawingMessage_ChangeColor";
        }
    }
}
